package com.pd.dao.mapper;

import com.pd.dao.model.ResourceDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dong peng on 2018/1/24.
 */
public interface ResourceDao {

    public List<ResourceDo> selectResources();

    public List<ResourceDo> selectRootNode();

    public List<ResourceDo> selectByParentId(@Param("resourceId") Integer resourceId, @Param("roleId") Integer roleId);

    public ResourceDo selectByUrl(String resourceUrl);

    public Integer insertResource(ResourceDo resourceDo);

    public Integer updateResource(ResourceDo resourceDo);

    public Integer deleteResource(Integer id);
}
